package yijy.duotai;

/**
 * Created by rain-hms on 2017/8/4.
 */
public class B extends A{

    public String show(B obj){
        return ("B and B");
    }

    @Override
    public String show(A obj){
        return ("B and A");
    }

    public static void main(String[] args) {
        A a = new B();
        B b = new B();
        System.out.println(a.show(b));
//        System.out.println(b.show(b));
    }
}
